#
# Audacity: A Digital Audio Editor
#

declare_module(uicomponents)

set(MODULE_QRC au_uicomponents.qrc)

set(MODULE_QML_IMPORT ${CMAKE_CURRENT_LIST_DIR}/qml)

set(MODULE_SRC
    ${CMAKE_CURRENT_LIST_DIR}/uicomponentsmodule.cpp
    ${CMAKE_CURRENT_LIST_DIR}/uicomponentsmodule.h

    ${CMAKE_CURRENT_LIST_DIR}/components/bpmmodel.cpp
    ${CMAKE_CURRENT_LIST_DIR}/components/bpmmodel.h
    ${CMAKE_CURRENT_LIST_DIR}/components/timecodemodeselector.cpp
    ${CMAKE_CURRENT_LIST_DIR}/components/timecodemodel.cpp
    ${CMAKE_CURRENT_LIST_DIR}/components/timecodemodel.h
    ${CMAKE_CURRENT_LIST_DIR}/components/timecodeformatter.cpp
    ${CMAKE_CURRENT_LIST_DIR}/components/timecodeformatter.h
    ${CMAKE_CURRENT_LIST_DIR}/components/numericformatter.cpp
    ${CMAKE_CURRENT_LIST_DIR}/components/numericformatter.h
    ${CMAKE_CURRENT_LIST_DIR}/components/beatsformatter.cpp
    ${CMAKE_CURRENT_LIST_DIR}/components/beatsformatter.h
    ${CMAKE_CURRENT_LIST_DIR}/components/fieldsinteractioncontroller.cpp
    ${CMAKE_CURRENT_LIST_DIR}/components/fieldsinteractioncontroller.h
    ${CMAKE_CURRENT_LIST_DIR}/types/timecode.h
)

setup_module()

if (AU_BUILD_UICOMONENTS_TESTS)
    add_subdirectory(tests)
endif()
